package com.wangsd.web.coupon.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wangsd.web.coupon.entity.BigWheel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wangsd.web.coupon.entity.BigWheelDetail;
import com.wangsd.web.coupon.entity.Company;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator
 * @since 2019-10-22
 */
public interface BigWheelService extends IService<BigWheel> {


    /**
     *  查询分页
     */
    IPage<BigWheel> selectPage(String code, Integer pageNum, Integer pageSize, BigWheel bigWheel);

    /**
     * 通过商圈id查询大转盘信息
     */
    BigWheel selectBigWheelByCompanyId(Long id);

    /**
     * 通过大转盘id查询大转盘明细
     */
    List<BigWheelDetail> selectBigWheelDetailByBigWheelId(Long id);

    /**
     * 添加修改大转盘
     */
    int addOrUpdate(BigWheel entity);

    /**
     * 修改上下架状态
     */
    int updateStatus(BigWheel bigWheel);

}
